package net.xdclass.xdclass_shiro.dto;

import lombok.Builder;
import lombok.Data;

/**
 * @author zhangsj
 * @date 2020/5/3 17:18
 */
@Data
@Builder
public class JsonData {
    private String code;
    private String message;
    private Object data;

    public static JsonData buildSuccess(Object b) {
        return JsonData.builder()
                .code("0")
                .message("success")
                .data(b)
                .build();
    }
}
